package com.lovo.system.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lovo.system.dto.PermissionsDto;
import com.lovo.system.mapper.PermissionsMapper;
import com.lovo.system.service.IPermissionsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionsServiceImpl extends ServiceImpl<PermissionsMapper, PermissionsDto> implements IPermissionsService {

    @Autowired
    PermissionsMapper permissionsMapper;

    @Override
    public List<PermissionsDto> init() {
        return permissionsMapper.selectList(new QueryWrapper<>());
    }

}
